<?php
	class db_link
	{
		var $connect;
		
		public function __construct()
		{
			$this->connect = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_DATABASE);
			mysql_select_db(DB_DATABASE, $this->connect);
		}
		
		public function query($strquery)
		{
			return mysql_query($strquery, $this->connect);
		}
		
		public function fetch($query)
		{
			return mysql_fetch_assoc($query);
		}
	}
?>